package cn.isgrow.gateway.entity;

import lombok.Data;
import org.springframework.cloud.gateway.filter.FilterDefinition;
import org.springframework.cloud.gateway.handler.predicate.PredicateDefinition;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Itachi is.xianglei@gmail.com
 * @Date 2020-05-22 17:28
 */
@Data
@Document(collection = "route")
public class RouteDefinitionEntity {

    @Id
    private String id;

    @NotEmpty
    private String desc;
    @NotEmpty
    private String predicates;

    private String filters;
    @NotEmpty
    private String uri;

    private Integer order = 0;


}
